﻿@{    
    Ajax.Dna().Widget()
            .Content(@<text> {
    @{
        var pid = item.GetString("PID");
        var bid = item.GetString("BID");
    }
    <script src="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=@(pid)&bid=@(bid)" type="text/javascript"></script>
    <noscript>
        <a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_advertiser.dbm">internet advertising</a></noscript>
    </text>)
            .Design(@<text>
    <iframe width="100%" scrolling="no" marginheight="0" marginwidth="0"
 src="@Url.Action("BidVertisterCode", "Widget", new { Area = "", pid = item.GetString("PID"), bid = item.GetString("BID") })"
    frameborder="0" height="@item.GetInt("AdHeight")"></iframe>
    </text>
            )
            .Preview(@<text><div>
                The BidVertister widget shows the AD from BidVertister.</div></text>)
            .Render();
}
